package cn.edu.lcu.cs.javaprogramming.oop.innerclass;

/**
 * 对雇员的年龄进行比较的比较器
 *
 * @author ling
 * @date 2022/3/23 14:57
 */
public class AgeComparator implements EmployeeComparator {
    @Override
    public int compare(Employee e1, Employee e2) {
        return e1.getAge() - e2.getAge();
    }
}
